#!/usr/bin/env python
# -*- coding:utf-8 -*-
# Author:Taotie Ren

import time

# print(time.time())
# print(time.ctime())
# print(time.ctime(time.time()-86400))
# print(time.gmtime())
# time_obj = time.gmtime()
# print(time_obj)
# print(time_obj.tm_year,time_obj.tm_mon)
# print("{year}-{month}".format(year = time_obj.tm_year,month = time_obj.tm_mon))
# print(time.localtime())
# print(time.mktime(time_obj))
# time.sleep(3)
# print('-----')
# tm = time.strftime("%Y-%m-%d %H:%M:%S",time.gmtime())
# print(tm)
# tm = time.strftime("%H:%M:%S",time.localtime())
# print(tm)

# tm = time.strptime("2018-04-24 22:22:22","%Y-%m-%d %H:%M:%S")
# print(tm)


# tm = time.strptime("2018-04-24 22:22:22","%Y-%m-%d %H:%M:%S")
# print(time.mktime(tm))


import datetime

# print(datetime.date.today())
# print(datetime.date.fromtimestamp(time.time()))
# current_time = datetime.datetime.now()
# print(current_time) #2018-04-24 22:26:27.868163
# str_to_date = datetime.datetime.strptime("24/04/18 22:22","%d/%m/%y %H:%M")
# print(str_to_date)
# new_date = datetime.datetime.now() + datetime.timedelta(days=10)
# print(new_date)
# new_date = datetime.datetime.now() + datetime.timedelta(days=-10)
# print(new_date)
# new_date = datetime.datetime.now() + datetime.timedelta(hours=-10)
# print(new_date)
# new_date = datetime.datetime.now() + datetime.timedelta(seconds=-120)
# print(new_date)

current_time = datetime.datetime.now()
print(current_time.replace(2014,6,20))












